import request from '@/utils/request'

const api = {
    houseList: '/house/lists',
    houseAdd: '/house/add',
    houseEdit: '/house/edit',
    housePutaway: '/house/putaway',
    houseDownfall: '/house/downfall',
    houseDelete: '/house/delete',
    houseKindsList: '/houseKinds/lists',
    houseKinds: '/notControl/houseKindsList',
    houseKindsAdd: '/houseKinds/add',
    houseKindsEdit: '/houseKinds/edit',
    houseKindsDel: '/houseKinds/delete',
    housePriceList: '/housePrice/lists',
    housePriceAdd: '/housePrice/add',
    housePriceEdit: '/housePrice/edit',
    housePriceDel: '/housePrice/delete',
    houseOrder: '/houseOrder/lists',
    houseOrderDetail: '/houseOrder/detail',
    houseStoreList: '/houseStore/lists',
    houseOrderPush: '/houseStore/orderPush'
}

export function houseOrderPush (parameter) {
  return request({
      url: api.houseOrderPush,
      method: 'get',
      params: parameter
  })
}
export function houseStoreList (parameter) {
    return request({
        url: api.houseStoreList,
        method: 'get',
        params: parameter
    })
}

export function gethouseKinds (parameter) {
    return request({
        url: api.houseKinds,
        method: 'get',
        params: parameter
    })
}

export function houseKindsList (parameter) {
    return request({
        url: api.houseKindsList,
        method: 'get',
        params: parameter
    })
}

export function houseKindsAdd (parameter) {
  return request({
    url: api.houseKindsAdd,
    method: 'post',
    data: parameter
  })
}

export function houseKindsEdit (parameter) {
  return request({
    url: api.houseKindsEdit,
    method: 'post',
    data: parameter
  })
}

export function houseKindsDel (parameter) {
  return request({
    url: api.houseKindsDel,
    method: 'get',
    params: parameter
  })
}

export function houseOrderDetail (parameter) {
    return request({
        url: api.houseOrderDetail,
        method: 'get',
        params: parameter
    })
  }

export function houseOrder (parameter) {
    return request({
        url: api.houseOrder,
        method: 'get',
        params: parameter
    })
  }

export function housePriceDel (parameter) {
    return request({
        url: api.housePriceDel,
        method: 'get',
        params: parameter
    })
  }

  export function housePriceEdit (parameter) {
    return request({
        url: api.housePriceEdit,
        method: 'post',
        data: parameter
    })
  }

  export function housePriceAdd (parameter) {
    return request({
        url: api.housePriceAdd,
        method: 'post',
        data: parameter
    })
  }

  export function housePriceList (parameter) {
    return request({
        url: api.housePriceList,
        method: 'get',
        params: parameter
    })
  }

export function houseDel (parameter) {
    return request({
        url: api.houseDelete,
        method: 'get',
        params: parameter
    })
}

export function housePutaway (parameter) {
    return request({
        url: api.housePutaway,
        method: 'post',
        data: parameter
    })
}

export function houseDownfall (parameter) {
    return request({
        url: api.houseDownfall,
        method: 'post',
        data: parameter
    })
}

export function houseEdit (parameter) {
    return request({
        url: api.houseEdit,
        method: 'post',
        data: parameter
    })
}

export function houseAdd (parameter) {
    return request({
        url: api.houseAdd,
        method: 'post',
        data: parameter
    })
}

export function houseList (parameter) {
    return request({
        url: api.houseList,
        method: 'get',
        params: parameter
    })
}
